package com.cmsz.walle.deploy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/main")
public class MainController {
	
	
	@RequestMapping("/test")
	public ModelAndView test()
	{
		System.out.println("Entry main test");
		ModelAndView mv=new ModelAndView();
		
		mv.addObject("name", "zhoushuang");
		mv.setViewName("index");
		
		return mv;
	}
}
